
import request from '@/utils/request'


// 查询证书列表
export function listCertificate(query) {
    return request({
        url: '/biz/level/list',
        method: 'get',
        params: query
    })
}


//新增证书信息

export function addCertificate(data) {
    return request({
        url: '/biz/level',
        method: 'post',
        data,
    })
}

// 查询证书详细
export function getCertificate(rid) {
    return request({
        url: '/biz/level/' + rid,
        method: 'get'
    })
}

//新增证书信息

export function removeCertificate(rid) {
    return request({
        url: '/biz/level/'+ rid,
        method: 'delete',
    })
}

// 修改证书信息
export function upDateCertificate(data) {
    return request({
        url: '/biz/level',
        method: 'put',
        data,
    })
}